package cn.com.simple.learning.designpattern.create.factory;


/**
 * @author Jianxing.Jia
 * @date 2022/2/7
 * @description 工厂模式 测试类
 */
public class FactoryTest {

    public static void main(String[] args) {

        VehicleFactory factory = new VehicleFactory();
        Vehicle car = factory.getVehicle("car");
        car.run();

        Vehicle bus = factory.getVehicle("bus");
        bus.run();

    }

}
